/**
 * Copyright (c) 2014-2016 www.nryuncang.com. All Rights Reserved.
 */
package com.topisv.tms.repository.prioritySend;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.topisv.tms.entity.EdiOrder;
import com.topisv.tms.entity.OfflineEdiOrder;

/**
 * 
 *
 * @author <a href=mailto:zhangweize@nryuncang.com>zhangweize</a>
 * @version 1.0.0
 */
public interface OfflineEdiOrderDao extends PagingAndSortingRepository<OfflineEdiOrder, Long>, JpaSpecificationExecutor<OfflineEdiOrder> {

	@Modifying
	@Query("update OfflineEdiOrder t set t.returnStatus=?1  where t.ordeno=?2")
	int updateReturnStatus(String status , String ordeno);
	
	@Query("select t from OfflineEdiOrder t   where t.ordeno=?1")
	OfflineEdiOrder findByOrdeno(String ordeno);
}
